/*
 * Class from CKS-Tagcloud 
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.WebPartPages;
using System.Xml.Serialization;
using System.Web.UI.HtmlControls;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.WebControls;
using System.Collections;
using System.Globalization;


namespace BDF.TagCloud 
{
    /// <summary>
    /// A Tag class
    /// </summary>
    public class Tag : IComparable
    {
        private string _name;
        private int _count;
        private string _url;

        public Tag()
        {
            this._name = String.Empty;
            this._count = 0;
        }
        public Tag(string Name, int Count)
        {
            this._name = Name;
            this._count = Count;
        }
        public Tag(string Name, int Count, string Url)
        {
            this._name = Name;
            this._count = Count;
            this._url = Url;
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public int Count
        {
            get
            {
                return this._count;
            }
            set
            {
                this._count = value;
            }

        }

        public string Url
        {
            get
            {
                return this._url;
            }
            set
            {
                this._url = value;
            }
        }

        #region IComparer Members

        public int CompareTo(object obj)
        {
            Tag tag = (Tag)obj;

            return this.Name.CompareTo(tag.Name);
        }

        #endregion

    }
    
}
